package com.yunmaozj.easydb.annotions.factory;

import com.yunmaozj.easydb.annotions.EasyDB;
import com.yunmaozj.easydb.annotions.Insert;
import com.yunmaozj.easydb.common.StringUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;

/**
 * @author zhongminghong
 * @email yunmaozj@qq.com
 * @create 2018-05-28 11:24
 */
public class InsertAnnotionsFactory extends AbstractDBAnnotionsFactory implements DBAnnotionsFactory {

    private Insert insert;

    public InsertAnnotionsFactory(Insert insert, EasyDB easyDB,Connection connection){
        super(easyDB,connection);
        this.insert = insert;
    }
    @Override
    public PreparedStatement getPreparedStatement() {
        String sql = this.insert.value();
        if(StringUtil.isEmpty(sql)){
            //获取类
        }
        return null;
    }
}
